package entity;

import java.sql.Timestamp;

public class User {
    private int id;          // 用户ID
    private String userName; // 用户名
    private String password; // 加密后的密码
    private boolean isBanned;
    private String role;
    private Timestamp createdTime;

    public User() {
    }

    public User(int id, String userName, String password, boolean isBanned, String role, Timestamp createdTime) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.isBanned = isBanned;
        this.role = role;
        this.createdTime = createdTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isBanned() {
        return isBanned;
    }

    public void setBanned(boolean banned) {
        isBanned = banned;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Timestamp getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Timestamp createdTime) {
        this.createdTime = createdTime;
    }
}
